import request from '@/utils/request'

// 查询户型资料列表
export function listHousemodel(query) {
  return request({
    url: '/house_sale/housemodel/list',
    method: 'get',
    params: query
  })
}

// 查询户型资料详细
export function getHousemodel(modelid) {
  return request({
    url: '/house_sale/housemodel/' + modelid,
    method: 'get'
  })
}

// 新增户型资料
export function addHousemodel(data) {
  return request({
    url: '/house_sale/housemodel',
    method: 'post',
    data: data
  })
}

// 修改户型资料
export function updateHousemodel(data) {
  return request({
    url: '/house_sale/housemodel',
    method: 'put',
    data: data
  })
}

// 删除户型资料
export function delHousemodel(modelid) {
  return request({
    url: '/house_sale/housemodel/' + modelid,
    method: 'delete'
  })
}
